<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="orderClientList.title"/></title>
    <meta name="heading" content="<fmt:message key='orderClientList.heading'/>"/>
    <meta name="menu" content="UserMenu"/>
</head>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editOrderClient"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<display:table name="orderClients"  defaultsort="2" defaultorder="descending" class="table" requestURI="" id="orderClientList" export="true" pagesize="25">

    <display:column property="id" sortable="true" href="editOrderClient" media="html"
        paramId="id" paramProperty="id" titleKey="orderClient.id"/>
    <display:column property="id" media="csv excel xml pdf" titleKey="orderClient.id"/>
    <display:column property="orderDate" group="1" sortable="true" titleKey="orderClient.orderDate"/>
    <display:column property="user.username" group="2" sortable="true" titleKey="orderClient.user.username"/>
    <display:column property="user.fullName"  sortable="true" titleKey="orderClient.user.fullName"/>
    <display:column property="orderType" group="3" sortable="true" titleKey="orderClient.orderType"/>
    <display:column property="source" group="4" sortable="true" titleKey="orderClient.source"/>
    <display:column property="client" sortable="true" titleKey="orderClient.client"/>
    <display:column property="idCard" sortable="true" titleKey="orderClient.idCard"/>
    <display:column property="introducer" sortable="true" titleKey="orderClient.introducer"/>
    <display:column property="introducerCell" sortable="true" titleKey="orderClient.introducerCell"/>
    <display:column property="subTime" sortable="true" titleKey="orderClient.subTime"/>
     <display:column property="remark" sortable="true" titleKey="orderClient.remark"/>
    <display:column property="modifyTime" sortable="true" titleKey="orderClient.modifyTime"/>
    <display:column titleKey="orderClient.subSystem" style="width: 16%; padding-left: 15px" media="html">
       <input type="checkbox" disabled="disabled" <c:if test="${orderClientList.subSystem}">checked="checked"</c:if>/>
    </display:column>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="orderClientList.orderClients"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="orderClientList.orderClients"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="orderClientList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="orderClientList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="orderClientList.title"/>.pdf</display:setProperty>
</display:table>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editOrderClient"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<script type="text/javascript">
    highlightTableRows("orderClientList");
</script>